package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <desc>
 *      APP发布日志实体类
 * </desc>
 *
 * @createDate 2017/09/20
 */
@Data
@NoArgsConstructor
@ItlTables("app_publish_info")
@EqualsAndHashCode(callSuper = true)
public class AppPublishInfoPO extends BasePO implements Serializable{

    @ItlField(value = "app_publish_id",logicKey = "key")
    private String appPublishId;             //日志ID
    @ItlField("app_type")
    private String  appType;        //类型,android/ios/iossdk/androidsdk/androidengineer
    @ItlField("app_sort")
    private String appSort;         //类别,test/official
    @ItlField("app_version")
    private String appVersion;      //版本号
    @ItlField("app_url")
    private String appUrl;          //地址
    @ItlField("app_down_url")
    private String appDownUrl;      //下载链接
    @ItlField("must_update")
    private Integer mustUpdate;     //是否强制更新
    @ItlField("remark")
    private String remark;          //备注


     /**
      * <desc>
      *      构造函数。
      * <desc/>
      *
      * @param  appPublishId  日志ID
      * @param  appType   类型,android/ios/iossdk/androidsdk/androidengineer
      * @param  appSort   类别,test/official
      * @param  appVersion  版本号
      * @param  appUrl  地址
      * @param  appDownUrl 下载链接
      * @param  mustUpdate 是否强制更新
      * @param  remark  备注
      * @return
      * @author shengen.T
      * @createDate 2017/10/25
      */
    public AppPublishInfoPO(String appPublishId,
                            String appType,
                            String appSort,
                            String appVersion,
                            String appUrl,
                            String appDownUrl,
                            Integer mustUpdate,
                            String remark
                            ){
        this.appPublishId = appPublishId;
        this.appType = appType;
        this.appSort = appSort;
        this.appVersion =appVersion;
        this.appUrl = appUrl;
        this.appDownUrl = appDownUrl;
        this.mustUpdate = mustUpdate;
        this.remark = remark;
    }

}
